//
// Created by zhuzonghui on 2022/12/16.
//

#ifndef WZY_USERSERVICE_H
#define WZY_USERSERVICE_H

#include <list>
#include "../model/user.h"

User *getUser(MYSQL_ROW column);

User *wzy_login(const char *username, const char *password);

list<User *> *wzy_get_user_list();

list<User *> *wzy_get_user_by_user_id_or_student_id(string userId);

void wzy_insert_user(User *user);

User *wzy_get_user_by_user_id(int userId);

void wzy_delete_user_by_user_id(User *user);

void wzy_change_password_by_user_id(User *user);

#endif //WZY_USERSERVICE_H
